import { defineConfig } from 'vitepress'

// https://vitepress.dev/reference/site-config
export default defineConfig({
  title: "bsin-app-uni",
  description: "一个uniapp 开发框架",
  themeConfig: {
    outlineTitle:'页面导航',
    // https://vitepress.dev/reference/default-theme-config
    nav: [
      { text: '指南', link: '/pages/introduce' },
      { text: '快速开始', link: '/pages/getStartedQuickly' },
      {
        text: '相关链接',
        items: [
          { text: 'wot-design-uni 文档', link: 'https://wot-design-uni.pages.dev/' },
          { text: 'unocss文档', link: 'https://unocss.nodejs.cn/' },
          { text: 'uni-helper团队', link: 'https://uni-helper.js.org/' }
        ]
      }
    ],

    sidebar: [
      {
        text: '指南',
        items: [
          { text: '介绍', link: '/pages/introduce' },
          { text: '快速开始', link: '/pages/getStartedQuickly' },
          { text: '代码规范', link: '/pages/codeSpecification' },
          { text: '插件篇', link: '/pages/plugin' },
          { text: '组件篇', link: '/pages/component' },
          { text: '图标篇', link: '/pages/icon' },
          { text: '请求篇', link: '/pages/request' },
          { text: '路由篇', link: '/pages/router' },
          { text: 'pinia', link: '/pages/pinia' },
          { text: '环境配置', link: 'pages/env' },
          { text: '主题色配置', link: 'pages/theme' },
          { text: 'git 提交规范', link: 'pages/gitCommit' },
          { text: '子包单独打包', link: 'pages/subPackage' },
          { text: '页面示例', link: 'pages/demoPage' },
        ]
      }

    ],

    socialLinks: [
      { icon: 'github', link: 'https://github.com/vuejs/vitepress' }
    ]
  },
  vite: {
    server: {
      port: 5177,
    }
  }
})
